package zuoye.test5;

class Pen implements WriteAction {
    private float price;
    private String color;

    public Pen() {
    }

    public Pen(float price, String color) {
        this.price = price;
        this.color = color;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void write() {
        // Do nothing in Pen
    }
}